package com.zian.service;

import cn.hutool.core.lang.tree.Tree;
import com.zian.domain.dto.CategoryDTO;
import com.zian.domain.dto.PageDTO;
import com.zian.domain.po.SysGoodsCategory;
import com.baomidou.mybatisplus.extension.service.IService;

import com.zian.domain.vo.CategoryVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
public interface ISysGoodsCategoryService extends IService<SysGoodsCategory> {

    List<Tree<Long>> queryCategory();

    void addCategory(CategoryDTO dto);

    void updateCategory(CategoryDTO dto);

    void deleteCategoryById(Long id, Boolean flag);

    SysGoodsCategory getCategoryById(Long id);

    List<Tree<Long>> getChildrenCategory(Long id);

    List<CategoryVO> getTopCategory();

}
